import { request } from "@/utils/service"

import { getToken } from "@/utils/cache/cookies"
import axios from "axios"
const baseURL = import.meta.env.VITE_BASE_API
/** 查 线下汇总 */
export function getztTableApi(params: any) {
  return request({
    url: "/szTable/queryStateList",
    method: "get",
    params
  })
}
// 导出
export function downLoadTable(data: any) {
  return axios({
    url: `${baseURL}/szTable/downState`,
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
      token: getToken()
    },
    data,
    responseType: "blob"
  })
}
